package xyz.jiang.common.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import xyz.jiang.common.utils.SMSUtils;

@Slf4j
@Component
public class SMSTask {

    @Async("taskExecutor")
    public void sendMsg(String mobile, String code) {
        SMSUtils.sendSMS(mobile,code);
    }

}
